<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table{
            border-collapse: collapse;
            caret-color: indianred;
        }
        tr:first-child>td{
            text-align: center;
        }
        td:last-child{
            text-align: center;
        }
        tr:hover{
            color: blanchedalmond;
        }
        a{
            text-decoration: none;
        }
    </style>
</head>
<body>
<a href="{% url 'app:Event_list' %}">发布会表</a> |



{#<a href="">退出</a>#}
<div align="center">
<h1>嘉宾名单</h1>
    <a href="">增加一条数据</a>
    <hr>
    <form action="">
    <table border="1" bgcolor="#f08080">
        <tr>
            <th>会议名称</th>
            <th>人员名字</th>
            <th>手机号</th>
            <th>邮箱</th>
            <th>状态</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        {% for i in guests %}
        <tr>
            <td>{{i.event.name }}</td>
            <td>{{ i.realname }}</td>
            <td>{{ i.phone}}</td>
            <td>{{ i.email}}</td>
            <td>{{ i.sing}}</td>
            <td>{{ i.create_time}}</td>
            <td>
                <a href="{% url 'app:sin' i.id %}">签到</a>
            </td>
        </tr>
        {% endfor %}
    </table>
    </form>
    <div>
        <span>
        {% if guests.has_previous %}
            <a href="?page={{ guests.previous_page_number }}">上一页</a>
        {% endif %}
        <span>
            第{{ guests.number }}页 共{{ guests.paginator.num_pages }}页
        </span>
        {% if guests.has_next %}
            <a href="?page={{ guests.next_page_number }}">下一页</a>
        {% endif %}
        </span>
    </div>
</div>
</body>
</html>